package org.jctc.els.modules.biz.entity.city;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 全国城市数据
 * </p>
 *
 * @author zcy
 * @since 2021-5-18
 */
@Getter
@Setter
@TableName("cmf_dic_city")
public class City {
    @TableId(value = "cityId",type = IdType.NONE)
    private Long cityId;
    /**
     * 城市名称
     */
    private String cityName;
    /**
     * 城市编码
     */
    private String cityCode;
    /**
     * 省份编码
     */
    private String provinceCode;
    /**
     * 排序号
     */
    private Integer sort;
    /**
     * 是否启用 1：启用(显示) 0：禁用(隐藏)
     */
    private Boolean isEnabled;

    public City() {
    }

    public City(Long cityId, String cityName, String cityCode, String provinceCode, Integer sort, Boolean isEnabled) {
        this.cityId = cityId;
        this.cityName = cityName;
        this.cityCode = cityCode;
        this.provinceCode = provinceCode;
        this.sort = sort;
        this.isEnabled = isEnabled;
    }

    @Override
    public String toString() {
        return "City{" +
                "cityId=" + cityId +
                ", cityName='" + cityName + '\'' +
                ", cityCode='" + cityCode + '\'' +
                ", provinceCode='" + provinceCode + '\'' +
                ", sort=" + sort +
                ", isEnabled=" + isEnabled +
                '}';
    }
}
